#pragma once

#include "./input.hpp"

namespace qbe::input {

void setup(ecs::Commands commands, ecs::Res<bool> enable) {
  auto handle = HandleBundle::create();
  handle->enable = &enable.get();
  commands.insert_resource(handle);
  commands.insert_resource(KeyBoardShortcutsManager());
}

void reset(ecs::Res<vsg::ref_ptr<HandleBundle>> handles) {
  handles.get()->reset();
}

}  // namespace qbe::input